import request from '@/utils/request'
// 注册
export function registerApi (data) {
  return request({
    url: '/h5/user/register',
    method: 'POST',
    data: data
  })
}
// 登入
export const loginApi = (data) => {
  return request.post('/h5/user/login', data)
}
// 获取用户信息
export const getUserInfoAPI = () => {
  return request.get('/h5/user/currentUser')
}
